﻿<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<title>欢迎光临 Music Store</title>
<h3 id="main-title">唱片列表</h3>
<c:forEach var="i" items="${albums }">
<table class="albumItem">
	<tr>
		<td rowspan="3" class="albumItem-image"><img
			src="CoverImages/${i.id}.jpg" alt="" /></td>
		<td colspan="2" class="albumItem-title"><a
			href="details?id=${i.id}">${i.title }</a></td>
	</tr>
	<tr>
		<td class="albumItem-artist"><strong>歌手：${i.artist }</strong></td>
		<td class=".albumItem-price"><strong>定价：${i.price }</strong>￥</td>
	</tr>
	<tr>
		<td colspan="2">${i.description }</td>
	</tr>
</table>
</c:forEach>
<hr />
<c:if test="${totalPages>0}">
<c:if test="${page>1}">
	<a href="?page=${page-1}&genreId=${genreId}&title=${title}">[上一页]</a>
</c:if>
<c:if test="${page<=1}">
	<a>[上一页]</a>
</c:if>
<c:if test="${page<totalPages}">
	<a href="?page=${page+1}&genreId=${genreId}&title=${title}">[下一页]</a>
</c:if>
<c:if test="${page>=totalPages}">
	<a>[下一页]</a>
</c:if>
	第 ${page} 页，共 ${totalPages} 页
</c:if>